/**
 * 驱动公共配置
 */
var ConnectorConstantMysql = "org.fastsyncer.connector.mysql.MysqlConnector";
var ConnectorConstantOracle = "org.fastsyncer.connector.oracle.OracleConnector";
var ConnectorConstantSqlServer = "org.fastsyncer.connector.sqlserver.SqlServerConnector";
var ConnectorConstantSqlMysql = "org.fastsyncer.connector.sql.SqlMysqlConnector";
var ConnectorConstantSqlOracle = "org.fastsyncer.connector.sql.SqlOracleConnector";
var ConnectorConstantLdap = "org.fastsyncer.connector.ldap.LdapConnector";
var ConnectorConstantWebService = "org.fastsyncer.connector.ws.WebServiceConnector";
var ConnectorConstantRedis = "org.fastsyncer.connector.redis.RedisConnector";
var ConnectorConstantSourceWebService = "org.fastsyncer.connector.ws.SourceWebServiceConnector";
var ConnectorConstantTargetWebService = "org.fastsyncer.connector.ws.TargetWebServiceConnector";

// 系统参数配置
var SystemParamsTaskMaxNumber = "fastsyncer.worker.task.max.number";
var SystemParamsBatchNumber = "fastsyncer.worker.batch.number";
var SystemParamsThreadNumber = "fastsyncer.worker.thread.number";
var SystemParamsWebserviceApprovalIPs = "fastsyncer.rest.ws.approval.ips";

//驱动类型
var DriverConnectorConstant = {
	"org.fastsyncer.connector.mysql.MysqlConnector" : {
		"name":"MysqlConnector",
		"url" : "/driver/page/driverAddMysql",
		"type" : "Mysql",
		"image" : $basePath + "/style/images/mysql.png"
	},
	"org.fastsyncer.connector.oracle.OracleConnector" : {
		"name":"OracleConnector",
		"url" : "/driver/page/driverAddOracle",
		"type" : "Oracle",
		"image" : $basePath + "/style/images/oracle.png"
	},
	"org.fastsyncer.connector.sql.SqlMysqlConnector" : {
		"name":"SqlMysqlConnector",
		"url" : "/driver/page/driverAddSqlMysql",
		"type" : "Sql_Mysql",
		"image" : $basePath + "/style/images/sql_mysql.png"
	},
	"org.fastsyncer.connector.sql.SqlOracleConnector" : {
		"name":"SqlOracleConnector",
		"url" : "/driver/page/driverAddSqlOracle",
		"type" : "Sql_Oracle",
		"image" : $basePath + "/style/images/sql_oracle.png"
	},
	"org.fastsyncer.connector.sqlserver.SqlServerConnector" : {
		"name":"SqlServerConnector",
		"url" : "/driver/page/driverAddSqlServer",
		"type" : "SqlServer",
		"image" : $basePath + "/style/images/sqlserver.png"
	},
	"org.fastsyncer.connector.redis.RedisConnector" : {
		"name":"RedisConnector",
		"url" : "/driver/page/driverAddRedis",
		"type" : "Redis",
		"image" : $basePath + "/style/images/redis.png"
	},
	"org.fastsyncer.connector.ldap.LdapConnector" : {
		"name":"LdapConnector",
		"url" : "/driver/page/driverAddLdap",
		"type" : "LDAP",
		"image" : $basePath + "/style/images/ldap.png"
	},
	"org.fastsyncer.connector.ws.WebServiceConnector" : {
		"name":"WebServiceConnector",
		"url" : "/driver/page/driverAddSourceWebService",
		"type" : "WebService",
		"image" : $basePath + "/style/images/webservice.png"
	},
	"org.fastsyncer.connector.ws.SourceWebServiceConnector" : {
		"url" : "/driver/page/driverAddSourceWebService"
	},
	"org.fastsyncer.connector.ws.TargetWebServiceConnector" : {
		"url" : "/driver/page/driverAddTargetWebService"
	}
}

//转换器条件表达式
var DriverConvertType = {
	"default" : {"name" : "默认(如果为空)","argNum" : 1},
	"defaultTimestamp" : {"name" : "默认系统时间戳","argNum" : 0},
	"replace" : {"name" : "替换","argNum" : 2},
	"prepend" : {"name" : "追加前缀","argNum" : 1},
	"append" : {"name" : "追加后缀","argNum" : 1},
	"remStrFirst" : {"name" : "去掉首字符","argNum" : 0},
	"remStrLast" : {"name" : "去掉尾字符","argNum" : 0},
	"subStrFirst" : {"name" : "从前面截取N个字符","argNum" : 1},
	"subStrLast" : {"name" : "从后面截取N个字符","argNum" : 1},
	"aesEncrypt" : {"name" : "AES加密","argNum" : 1},
	"aesDecrypt" : {"name" : "AES解密","argNum" : 1},
	"sha1" : {"name" : "SHA1加密","argNum" : 0},
	"uuid" : {"name" : "UUID","argNum" : 0},
	"pickUpNum" : {"name" : "补位数字","argNum" : 1},
	"clear" : {"name" : "清空","argNum" : 0}
}

//驱动过滤条件表达式
var DriverOperType = {
	"equal" : "=",
	"notEqual" : "!=",
	"gt" : "&gt;",
	"lt" : "&lt;",
	"gtAndEqual" : "&gt;=",
	"ltAndEqual" : "&lt;="
}

//对话框
var BootstrapDialogTypes = [ 
	BootstrapDialog.TYPE_DEFAULT,
	BootstrapDialog.TYPE_INFO, 
	BootstrapDialog.TYPE_PRIMARY,
	BootstrapDialog.TYPE_SUCCESS, 
	BootstrapDialog.TYPE_WARNING,
	BootstrapDialog.TYPE_DANGER];

//咆哮弹窗
var BootstrapGrowlTypes = [ 'info', 'danger', 'success'];
